package app.runner;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class ApplicationRunner implements CommandLineRunner {

	/** 系统ip */
	@Value("${server.ip}")
	public String THIS_SYSTEM_IP;
	/** 系统port */
	@Value("${server.port}")
	public String THIS_SYSTEM_PORT;

	private static Logger logger = LoggerFactory.getLogger(ApplicationRunner.class);

	public void run(String... var1) throws Exception {
		logger.info("This will be execute when the project was started!");
	}
}
